package com.huatai.manage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.huatai.manage.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 标签管理;
 * </p>
 *
 * @author luoxc
 * @since 2023-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_trial_label")
@ApiModel(value="TbTrialLabel对象", description="标签管理;")
public class TbTrialLabelEntity extends BaseEntity {

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "标签id")
    @TableField("label_id")
    private String labelId;

    @ApiModelProperty(value = "标签类型", required = true)
    @TableField("label_type")
    @NotBlank(message = "标签类型不能为空！")
	private String labelType;

    @ApiModelProperty(value = "标签名称", required = true)
    @TableField("label_name")
    @NotBlank(message = "标签名称不能为空！")
	private String labelName;

	@ApiModelProperty(value = "标签样式", required = true)
	@TableField("label_style")
	@NotBlank(message = "标签样式不能为空！")
	private String labelStyle;

    @ApiModelProperty(value = "状态")
    @TableField("state")
	private String state = "1";


	@ApiModelProperty(value = "备注")
	@TableField("remark")
	private String remark;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;


}
